package com.inossem.utils.chart;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by leij on 2018/1/8.
 */

public class ChartBean {

//    {
//        "leftAxisMaxValue":"200",
//            "rightAxisMaxValue":"100",
//            "leftAxisUnit":"笔",
//            "rightAxisUnit":"%",
//            "title":"表格标题",
//            "chartInfoList":[
//        {
//            "name":"入库",
//                "type":"0",
//                "dependence":"0"
//        },
//        {
//            "name":"出库",
//                "type":"0",
//                "dependence":"0"
//        },
//        {
//            "name":"操作数",
//                "type":"1",
//                "dependence":"0"
//        },
//        {
//            "name":"使用率",
//                "type":"1",
//                "dependence":"1"
//        }
//    ],
//        "xAxisList":[
//        {
//            "xAxisName":"张三",
//                "yAxisValueList":[
//            {
//                "yAxisValue":"3"
//            },
//            {
//                "yAxisValue":"5"
//            },
//            {
//                "yAxisValue":"8"
//            },
//            {
//                "yAxisValue":"80"
//            }
//            ]
//        },
//        {
//            "xAxisName":"李四",
//                "yAxisValueList":[
//            {
//                "yAxisValue":"5"
//            },
//            {
//                "yAxisValue":"8"
//            },
//            {
//                "yAxisValue":"13"
//            },
//            {
//                "yAxisValue":"50"
//            }
//            ]
//        }
//    ],
//        "xLimitLine":[
//        {
//            "title":"分割线",
//                "index":"1"
//        }
//    ],
//        "yLimitLine":[
//        {
//            "title":"分割线",
//                "yAxisValue":"60",
//                "dependence":"0"
//        }
//    ]
//    }

    /**
     * leftAxisMaxValue : 200
     * rightAxisMaxValue : 100
     * leftAxisUnit : 笔
     * rightAxisUnit : %
     * title : 表格标题
     * chartInfoList : [{"name":"入库","type":"0","dependence":"0"},{"name":"出库","type":"0","dependence":"0"},{"name":"操作数","type":"1","dependence":"0"},{"name":"使用率","type":"1","dependence":"1"}]
     * xAxisList : [{"xAxisName":"张三","yAxisValueList":[{"yAxisValue":"3"},{"yAxisValue":"5"},{"yAxisValue":"8"},{"yAxisValue":"80"}]},{"xAxisName":"李四","yAxisValueList":[{"yAxisValue":"5"},{"yAxisValue":"8"},{"yAxisValue":"13"},{"yAxisValue":"50"}]}]
     * xLimitLine : [{"title":"分割线","index":"1"}]
     * yLimitLine : [{"title":"分割线","yAxisValue":"60","dependence":"0"}]
     */

    private String leftAxisMaxValue;
    private String rightAxisMaxValue;
    private String leftAxisUnit;
    private String rightAxisUnit;
    private String title;
    private List<ChartInfoListBean> chartInfoList;
    private List<XAxisListBean> xAxisList;
    private List<XLimitLineBean> xLimitLine;
    private List<YLimitLineBean> yLimitLine;

    public ChartBean() {
        this.leftAxisMaxValue = "";
        this.rightAxisMaxValue = "";
        this.leftAxisUnit = "";
        this.rightAxisUnit = "";
        this.title = "";
        this.chartInfoList = new ArrayList<>();
        this.xAxisList = new ArrayList<>();
        this.xLimitLine = new ArrayList<>();
        this.yLimitLine = new ArrayList<>();
    }

    public String getLeftAxisMaxValue() {
        return leftAxisMaxValue;
    }

    public void setLeftAxisMaxValue(String leftAxisMaxValue) {
        this.leftAxisMaxValue = leftAxisMaxValue;
    }

    public String getRightAxisMaxValue() {
        return rightAxisMaxValue;
    }

    public void setRightAxisMaxValue(String rightAxisMaxValue) {
        this.rightAxisMaxValue = rightAxisMaxValue;
    }

    public String getLeftAxisUnit() {
        return leftAxisUnit;
    }

    public void setLeftAxisUnit(String leftAxisUnit) {
        this.leftAxisUnit = leftAxisUnit;
    }

    public String getRightAxisUnit() {
        return rightAxisUnit;
    }

    public void setRightAxisUnit(String rightAxisUnit) {
        this.rightAxisUnit = rightAxisUnit;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ChartInfoListBean> getChartInfoList() {
        return chartInfoList;
    }

    public void setChartInfoList(List<ChartInfoListBean> chartInfoList) {
        this.chartInfoList = chartInfoList;
    }

    public List<XAxisListBean> getXAxisList() {
        return xAxisList;
    }

    public void setXAxisList(List<XAxisListBean> xAxisList) {
        this.xAxisList = xAxisList;
    }

    public List<XLimitLineBean> getXLimitLine() {
        return xLimitLine;
    }

    public void setXLimitLine(List<XLimitLineBean> xLimitLine) {
        this.xLimitLine = xLimitLine;
    }

    public List<YLimitLineBean> getYLimitLine() {
        return yLimitLine;
    }

    public void setYLimitLine(List<YLimitLineBean> yLimitLine) {
        this.yLimitLine = yLimitLine;
    }

    public static class ChartInfoListBean {
        /**
         * name : 入库
         * type : 0
         * dependence : 0
         */

        private String name;
        private String type;
        private String dependence;
        private Integer index;

        public ChartInfoListBean() {
            this.name = "";
            this.type = "";
            this.dependence = "";
            this.index = null;
        }

        public Integer getIndex() {
            return index;
        }

        public void setIndex(Integer index) {
            this.index = index;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getDependence() {
            return dependence;
        }

        public void setDependence(String dependence) {
            this.dependence = dependence;
        }
    }

    public static class XAxisListBean {
        /**
         * xAxisName : 张三
         * yAxisValueList : [{"yAxisValue":"3"},{"yAxisValue":"5"},{"yAxisValue":"8"},{"yAxisValue":"80"}]
         */

        private String xAxisName;
        private List<YAxisValueListBean> yAxisValueList;

        public XAxisListBean() {
            this.xAxisName = "";
            this.yAxisValueList = new ArrayList<>();
        }

        public String getXAxisName() {
            return xAxisName;
        }

        public void setXAxisName(String xAxisName) {
            this.xAxisName = xAxisName;
        }

        public List<YAxisValueListBean> getYAxisValueList() {
            return yAxisValueList;
        }

        public void setYAxisValueList(List<YAxisValueListBean> yAxisValueList) {
            this.yAxisValueList = yAxisValueList;
        }

        public static class YAxisValueListBean {
            /**
             * yAxisValue : 3
             */

            private String yAxisValue;

            public String getYAxisValue() {
                return yAxisValue;
            }

            public void setYAxisValue(String yAxisValue) {
                this.yAxisValue = yAxisValue;
            }
        }
    }

    public static class XLimitLineBean {
        /**
         * title : 分割线
         * index : 1
         */

        private String title;
        private String index;

        public XLimitLineBean() {
            this.title = "";
            this.index = "";
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getIndex() {
            return index;
        }

        public void setIndex(String index) {
            this.index = index;
        }
    }

    public static class YLimitLineBean {
        /**
         * title : 分割线
         * yAxisValue : 60
         * dependence : 0
         */

        private String title;
        private String yAxisValue;
        private String dependence;

        public YLimitLineBean() {
            this.title = "";
            this.yAxisValue = "";
            this.dependence = "";
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getYAxisValue() {
            return yAxisValue;
        }

        public void setYAxisValue(String yAxisValue) {
            this.yAxisValue = yAxisValue;
        }

        public String getDependence() {
            return dependence;
        }

        public void setDependence(String dependence) {
            this.dependence = dependence;
        }
    }
}
